package cn.baidu.service;

import cn.baidu.dao.RoomDao;
import cn.baidu.pojo.Room;

import java.util.List;

public class service {
    public service() {

    }

    public void addRoom(Room room) {
       RoomDao dao = new RoomDao();
       dao.addRoom(room);
    }

    public void delRoom(int id){
        RoomDao dao = new RoomDao();
        dao.delRoom(id);
    }
    public List<Room> findRoom (int id, String tj, String rzsj){
        RoomDao dao = new RoomDao();
        return dao.findRoom(id,tj,rzsj);
    }

    public void edit(Room room){ RoomDao dao = new RoomDao();
        dao.edit(room);}

}
